package com.miloisbadboy.learn.activity;

import com.miloisbadboy.learn.R;
import com.miloisbadboy.learn.adapter.ImageAdapter;
import com.miloisbadboy.learn.widget.CircleFlowIndicator;
import com.miloisbadboy.learn.widget.ViewFlow;

import android.app.Activity;
import android.os.Bundle;

public class PlayActivity extends Activity {
	
	private ViewFlow mViewFlow;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		mViewFlow = (ViewFlow)findViewById(R.id.viewflow);
		CircleFlowIndicator indicator = (CircleFlowIndicator)findViewById(R.id.viewflowindic);
		mViewFlow.setFlowIndicator(indicator);
		
		mViewFlow.setAdapter(new ImageAdapter(this));
	}
}
